﻿/**
 * @file OperList.h
 * @brief List操作器
 * @author wangning (2185896382@qq.com)
 * @date 2024-12-20
 */
#ifndef _OPER___List__H___
#define _OPER___List__H___

#include "FITK_Kernel/FITKCore/FITKActionOperator.h"
#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"
#include <QComboBox>

namespace ModelOper
{
    /**
     * @brief List操作器
     * @author wangning (2185896382@qq.com)
     * @date 2024-12-20
     */
    class OperList : public Core::FITKActionOperator
    {
    public:
        explicit OperList() = default;
        virtual ~OperList() = default;
        /**
         * @brief 执行UI操作
         * @return true
         * @return false
         * @author wangning (2185896382@qq.com)
         * @date 2024-12-20
         */
        bool execGUI() override;
        /**
         * @brief 执行业务操作
         * @return true
         * @return false
         * @author wangning (2185896382@qq.com)
         * @date 2024-12-20
         */
        bool execProfession() override;
    };
    //注册对象
    Register2FITKOperatorRepo(actionMaterialList, OperList);
    Register2FITKOperatorRepo(actionNCTList, OperList);
    Register2FITKOperatorRepo(actionPropertyList, OperList);
    Register2FITKOperatorRepo(actionSpectraList, OperList);
    Register2FITKOperatorRepo(actionLoadListView, OperList);
}

#endif